const express = require("express");
const past = require("path");
//引入路由
let adminRouter = require("./routers/adminRouter");
const bodyParser = require("body-parser");
const path = require("path");
let app = express();
// 设置引擎模板
app.set("views",path.join(__dirname,"views"));
// 设置模板引擎
app.set("view engin","ejs");
app.use(bodyParser.urlencoded({
    extended:false
}))
app.use("/admin",adminRouter);

app.listen(9999);